import App from "./App";
import Layout from "@/layouts/Layout.vue";

// #ifndef VUE3
import Vue from "vue";
import "./uni.promisify.adaptor";

Vue.config.productionTip = false;
App.mpType = "app";
const app = new Vue({
  ...App,
});
app.$mount();
// #endif

// #ifdef VUE3
import { createSSRApp } from "vue";
import pluginsSetup from "plugins";

export function createApp() {
  const app = createSSRApp(App);
  pluginsSetup();
  //注册全局组件
  app.component(Layout);
  return {
    app,
  };
}

// #endif
